function alertNew(info, w, h, contId) {
	layui.use(['layer', 'form'], function() {
		var layer = layui.layer;
		var form = layui.form;
		layer.open({
			type: 1,
			title: info,
			area: [w + 'px', h + 'px'],
			content: contId //这里content是一个普通的String
		});

	});
}

function prompt(info) {
	layui.use('layer', function() {
		var layer = layui.layer;

		layer.open({
			title: '提示',
			content: info
		});
	});
}
	$.ajaxSetup({
			 complete: function(jqXHR){
        if (jqXHR.status == 304) {
	        	sessionStorage.getItem("acountId",null)
	          window.location.href = "../index.html"
	        }
	    	var shielding = [902,901,304,903,401]; //拦截状态码
          
        if (shielding.indexOf(jqXHR.status) != -1) {
	        	sessionStorage.getItem("id",null)	        	
	           window.location.href = "../index.html";
	           
	        
	        }
    	},
	    error : function(jqXHR, textStatus, errorThrown) {
	    	
	    	var shielding = [902,901,304,903,401]; //拦截状态码
	    	if (shielding.indexOf(jqXHR.status) != -1) {
	        	sessionStorage.getItem("id",null)
	        	
	         window.location.href = "../index.html";
	        
	        }
	    }
	});
 function date(value) {
      var date=new Date(value)
      var newDate=date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds()
     // console.log(newDate)
        return newDate;  
    }
 
//点击查询
function lookSearch(clickObj,user,table,serach){
	if(serach){
		clickObj.click(function() {
			table.bootstrapTable('refresh', {
				query: {
					mail:user.val(),

				}
				
			});
		
			
		})
	}else{
		clickObj.click(function() {
			table.bootstrapTable('refresh', {
				query: {
					mtLogin:user.val(),

				}
				
			});
		
			
		})
	}
		

	}
//转换钱格式
function changeMoney(money){
	return money.toLocaleString()
}
